package net.vistiyos.android;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class Credenciales extends SQLiteOpenHelper {
	
	private String SQL = "CREATE TABLE credenciales(usuario varchar(1000) not null primary key, password varchar(1000) not null)";

	public Credenciales(Context context, String name, CursorFactory factory,int version) {
		super(context, name, factory, version);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(SQL);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int vAnterior, int vActual) {
		db.execSQL("DROP TABLE IF EXISTS credenciales");
		db.execSQL(SQL);
	}

}
